<?php
class Mozg_Request_Std extends Mozg_Request
{
	private $_params = array();

	public function __construct()
	{
		if ($_SERVER['argc'] < 2) return;	
		for ($i = 1; $i < sizeof($_SERVER['argv']); $i++)
		{
			list($key, $value) = explode('=', $_SERVER['argv'][$i], 2);
			$this->_params[trim($key)] = trim($value);				
		}
	}

    public function get($key)
    {
		if ($this->has($key)) return $this->_params[$key];
		return null;        
    }
    
    public function has($key)
    {
    	return isset($this->_params[$key]);
    }
}